package com.hnucm.c202001020216.ui.fragment;

import android.os.Bundle;

import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bumptech.glide.Glide;
import com.hnucm.c202001020216.DataApplication;
import com.hnucm.c202001020216.R;
import com.hnucm.c202001020216.databinding.FragmentUserBinding;


public class UserFragment extends Fragment {


    FragmentUserBinding binding;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        binding= DataBindingUtil.inflate(inflater,R.layout.fragment_user, container, false);

        //设置用户头像和昵称
        Glide.with(getActivity()).load(DataApplication.getDataUserDTO().userPic).into(binding.imageView5);
        binding.textView20.setText(DataApplication.getDataUserDTO().username);

        return binding.getRoot();
    }
}